home *** CD-ROM | disk | FTP | other *** search
/ Merciful 2 / Merciful - Disc 2.iso / software / d / devioustools21.dms / devioustools21.adf / utils / 009.lzx / dos.h < prev    next >
C/C++ Source or Header  |  1983-04-30  |  3KB  |  129 lines

  1.  
  2. /*
  3.  * $Id: dos.h,v 1.3 1995/11/14 00:43:34 Rhialto Exp $
  4.  * $Log: dos.h,v $
  5.  * Revision 1.3  1995/11/14  00:43:34  Rhialto
  6.  * More casts for yet stricter DICE type checking...
  7.  *
  8.  * Revision 1.2  1994/05/15  20:08:08  Rhialto
  9.  * Add #define DOSBase_DECLARED.
  10.  *
  11.  * Revision 1.1  1993/12/02  20:45:46  Rhialto
  12.  * Initial revision
  13.  *
  14.  */
  15.  
  16. #ifndef DOS_H
  17. #define DOS_H
  18.  
  19. #define DOSBase_DECLARED    /* for some older versions of DICE */
  20.  
  21. #ifndef EXEC_TYPES_H
  22. #include "exec/types.h"
  23. #endif
  24. #ifndef EXEC_MEMORY_H
  25. #include "exec/memory.h"
  26. #endif
  27. #ifndef EXEC_INTERRUPTS_H
  28. #include "exec/interrupts.h"
  29. #endif
  30. #ifndef EXEC_NODES_H
  31. #include "exec/nodes.h"
  32. #endif
  33. #ifndef EXEC_PORTS_H
  34. #include "exec/ports.h"
  35. #endif
  36. #ifndef EXEC_IO_H
  37. #include "exec/io.h"
  38. #endif
  39. #ifndef DOS_DOS_H
  40. #include "dos/dos.h"
  41. #endif
  42. #ifndef DOS_DOSEXTENS_H
  43. #include "dos/dosextens.h"
  44. #endif
  45. #ifndef DOS_FILEHANDLER_H
  46. #include "dos/filehandler.h"
  47. #endif
  48. #ifndef DEVICES_TRACKDISK_H
  49. #include "devices/trackdisk.h"
  50. #endif
  51. #ifndef DEVICES_TIMER_H
  52. #include "devices/timer.h"
  53. #endif
  54.  
  55. #ifndef CLIB_DOS_PROTOS_H
  56. #include <clib/dos_protos.h>
  57. #endif
  58.  
  59. extern struct DosLibrary *DOSBase;
  60.  
  61. /*
  62.  *  ACTIONS which do not exist in dosextens.h but which indeed exist on
  63.  *  the Amiga.
  64.  */
  65.  
  66. #define ACTION_MORECACHE    18L
  67. #ifndef ACTION_FLUSH
  68. #define ACTION_FLUSH        27L
  69. #endif
  70. #define ACTION_RAWMODE        994L
  71. #define ACTION_OPENRW        1004L
  72. #define ACTION_OPENOLD        1005L
  73. #define ACTION_OPENNEW        1006L
  74. #define ACTION_CLOSE        1007L
  75. #ifndef ACTION_SEEK
  76. #define ACTION_SEEK        1008L
  77. #endif
  78.  
  79. #ifndef FIBB_HIDDEN
  80. #define FIBB_HIDDEN 7L
  81. #define FIBF_HIDDEN (1L<<FIBB_HIDDEN)
  82. #endif
  83.  
  84. #ifndef DE_DOSTYPE
  85. #define DE_DOSTYPE        16L
  86. #endif
  87.  
  88. #define MSH_MAGIC        'Msh\0'
  89.  
  90. #define CTOB(x)         (((long)(x))>>2)    /*  BCPL conversion */
  91. #define BTOC(x) (void *)(((long)(x))<<2)
  92.  
  93. #define bmov(ss,dd,nn) CopyMem(ss,dd,(ulong)(nn))   /* Matt's habit */
  94.  
  95. #define DOS_FALSE   0L
  96. #define DOS_TRUE    -1L
  97.  
  98. typedef struct Interrupt    INTERRUPT;
  99. typedef struct Task        TASK;
  100. typedef struct FileLock     LOCK;
  101. typedef struct FileInfoBlock    FIB;
  102. typedef struct DosPacket    PACKET;
  103. typedef struct Process        PROC;
  104. typedef struct DeviceNode    DEVNODE;
  105. typedef struct DeviceList    DEVLIST;
  106. typedef struct DosInfo        DOSINFO;
  107. typedef struct RootNode     ROOTNODE;
  108. typedef struct FileHandle    FH;
  109. typedef struct MsgPort        PORT;
  110. typedef struct Message        MSG;
  111. typedef struct MinList        LIST;
  112. typedef struct MinNode        NODE;
  113. typedef struct DateStamp    STAMP;
  114. typedef struct InfoData     INFODATA;
  115. typedef struct DosLibrary    DOSLIB;
  116.  
  117. #define PType (packet->dp_Type)
  118. #define PArg1 (packet->dp_Arg1)
  119. #define PArg2 (packet->dp_Arg2)
  120. #define PArg3 (packet->dp_Arg3)
  121. #define PArg4 (packet->dp_Arg4)
  122. #define PArg5 (packet->dp_Arg5)
  123. #define PRes1 (packet->dp_Res1)
  124. #define PRes2 (packet->dp_Res2)
  125.  
  126. #define dl_NetFileLockList   dl_unused
  127.  
  128. #endif
  129.